<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript">
<!--
	$(function(){
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
	$("#link_name").formValidator({onshow:"<?php echo L("input").L('link_name')?>",onfocus:"<?php echo L("input").L('link_name')?>"}).inputValidator({min:1,onerror:"<?php echo L("input").L('link_name')?>"});
 	$("#link_url").formValidator({onshow:"<?php echo L("input").L('url')?>",onfocus:"<?php echo L("input").L('url')?>"}).inputValidator({min:1,onerror:"<?php echo L("input").L('url')?>"}).regexValidator({regexp:"^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&]*([^<>])*$",onerror:"<?php echo L('link_onerror')?>"})
	 
	})
//-->
</script>

<div class="pad_10">
<form action="?m=dropzone&c=dropzone&a=add" method="post" name="myform" id="myform">
<table cellpadding="2" cellspacing="1" class="table_form" width="100%">
	<tr id="logolink">
		<th width="100"><?php echo L('logo')?>：</th>
		<td><?php echo form::images('dropzone[img_path]', 'img_path', $r[img_path], 'dropzone')?></td>
	</tr>
	<tr>
		<th width="100"><?php echo L('link_address')?>：</th>
		<td><input type="text" name="dropzone[link]" id="link" size="30" class="input-text" value="<?php echo $r[link]?>"></td>
	</tr>
	
	<tr>
		<th><?php echo L('isuse')?>：</th>
		<td><input name="dropzone[isuse]" type="radio" value="1" <?php if($r[isuse] == 1) {?>checked<?php }?>>&nbsp;<?php echo L('open')?>&nbsp;&nbsp;<input
			name="dropzone[isuse]" type="radio" value="0" <?php if($r[isuse] == 0) {?>checked<?php }?>>&nbsp;<?php echo L('close')?></td>
	</tr>

	<tr>
		<th></th>
		<td>
		<input type="hidden" name="dropzone[dropzoneid]" value="<?php echo $r[dropzoneid]?>" /> 
		<input type="hidden" name="dropzone[type]" value="1" /> 
		<input type="hidden" name="forward" value="?m=dropzone&c=dropzone&a=init" /> 
		<input type="submit" name="dosubmit" id="dosubmit" class="button" value="<?php echo L('submit')?> " />
		</td>
	</tr>

</table>
</form>
</div>
</body>
</html> 